package android.preference;

import android.content.Context;
import android.preference.Preference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

public class MultilinePreference extends Preference {

	public MultilinePreference(Context context) {
		super(context);
	}

	public MultilinePreference(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public MultilinePreference(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	protected void onBindView(View view) {
		super.onBindView(view);

		TextView textView = (TextView) view.findViewById(android.R.id.title);
		if (textView != null) {
			textView.setSingleLine(false);
		}
	}

}
